package com.jia.lidao.others.enity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 00029935 on 2017/12/7.
 */

public class Order {


    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1512715627
     * orders : {"page":0,"data":[{"id":85,"status":1,"status_name":"待付款","order_sn":"20171208130656501184","order_goods":[{"order_goods_id":86,"goods_id":5,"quantity":1,"price":10,"goods_name":"店铺测试商品","goods_pic":"http://www.baidu.com","total_money":10}]},{"id":84,"status":1,"status_name":"待付款","order_sn":"20171208130557501183","order_goods":[{"order_goods_id":85,"goods_id":1,"quantity":1,"price":2.34,"goods_name":"化肥","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2.34}]},{"id":83,"status":1,"status_name":"待付款","order_sn":"20171208130329501182","order_goods":[{"order_goods_id":84,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}]},{"id":82,"status":1,"status_name":"待付款","order_sn":"20171208125013501181","order_goods":[{"order_goods_id":83,"goods_id":7,"quantity":1,"price":5,"goods_name":"店铺测试商品3","goods_pic":"http://www.baidu.com","total_money":5}]},{"id":81,"status":1,"status_name":"待付款","order_sn":"20171208124939501180","order_goods":[{"order_goods_id":82,"goods_id":6,"quantity":1,"price":4,"goods_name":"店铺测试商品2","goods_pic":"http://www.baidu.com","total_money":4}]},{"id":80,"status":1,"status_name":"待付款","order_sn":"20171208124121501179","order_goods":[{"order_goods_id":81,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}]},{"id":13,"status":1,"status_name":"待付款","order_sn":"20171127100043501112","order_goods":[{"order_goods_id":14,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}]},{"id":7,"status":1,"status_name":"待付款","order_sn":"20171125125246501106","order_goods":[{"order_goods_id":8,"goods_id":1,"quantity":1,"price":5,"goods_name":"化肥","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":5}]},{"id":5,"status":3,"status_name":"待发货","order_sn":"20171123142434501104","order_goods":[{"order_goods_id":5,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2},{"order_goods_id":6,"goods_id":1,"quantity":1,"price":5,"goods_name":"化肥","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":5}]},{"id":4,"status":3,"status_name":"待发货","order_sn":"20171122153130501103","order_goods":[{"order_goods_id":3,"goods_id":1,"quantity":1,"price":5,"goods_name":"化肥","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":5},{"order_goods_id":4,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}]}],"page_size":10,"total_records":10,"total_pages":1}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private OrdersBean orders;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public OrdersBean getOrders() {
        return orders;
    }

    public void setOrders(OrdersBean orders) {
        this.orders = orders;
    }

    public static class OrdersBean {
        /**
         * page : 0
         * data : [{"id":85,"status":1,"status_name":"待付款","order_sn":"20171208130656501184","order_goods":[{"order_goods_id":86,"goods_id":5,"quantity":1,"price":10,"goods_name":"店铺测试商品","goods_pic":"http://www.baidu.com","total_money":10}]},{"id":84,"status":1,"status_name":"待付款","order_sn":"20171208130557501183","order_goods":[{"order_goods_id":85,"goods_id":1,"quantity":1,"price":2.34,"goods_name":"化肥","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2.34}]},{"id":83,"status":1,"status_name":"待付款","order_sn":"20171208130329501182","order_goods":[{"order_goods_id":84,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}]},{"id":82,"status":1,"status_name":"待付款","order_sn":"20171208125013501181","order_goods":[{"order_goods_id":83,"goods_id":7,"quantity":1,"price":5,"goods_name":"店铺测试商品3","goods_pic":"http://www.baidu.com","total_money":5}]},{"id":81,"status":1,"status_name":"待付款","order_sn":"20171208124939501180","order_goods":[{"order_goods_id":82,"goods_id":6,"quantity":1,"price":4,"goods_name":"店铺测试商品2","goods_pic":"http://www.baidu.com","total_money":4}]},{"id":80,"status":1,"status_name":"待付款","order_sn":"20171208124121501179","order_goods":[{"order_goods_id":81,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}]},{"id":13,"status":1,"status_name":"待付款","order_sn":"20171127100043501112","order_goods":[{"order_goods_id":14,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}]},{"id":7,"status":1,"status_name":"待付款","order_sn":"20171125125246501106","order_goods":[{"order_goods_id":8,"goods_id":1,"quantity":1,"price":5,"goods_name":"化肥","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":5}]},{"id":5,"status":3,"status_name":"待发货","order_sn":"20171123142434501104","order_goods":[{"order_goods_id":5,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2},{"order_goods_id":6,"goods_id":1,"quantity":1,"price":5,"goods_name":"化肥","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":5}]},{"id":4,"status":3,"status_name":"待发货","order_sn":"20171122153130501103","order_goods":[{"order_goods_id":3,"goods_id":1,"quantity":1,"price":5,"goods_name":"化肥","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":5},{"order_goods_id":4,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}]}]
         * page_size : 10
         * total_records : 10
         * total_pages : 1
         */

        private int page;
        private int page_size;
        private int total_records;
        private int total_pages;
        private List<DataBean> data;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getTotal_records() {
            return total_records;
        }

        public void setTotal_records(int total_records) {
            this.total_records = total_records;
        }

        public int getTotal_pages() {
            return total_pages;
        }

        public void setTotal_pages(int total_pages) {
            this.total_pages = total_pages;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean implements Serializable{
            /**
             * id : 85
             * status : 1
             * status_name : 待付款
             * order_sn : 20171208130656501184
             * payment_type=1
             * order_goods : [{"order_goods_id":86,"goods_id":5,"quantity":1,"price":10,"goods_name":"店铺测试商品","goods_pic":"http://www.baidu.com","total_money":10}]
             */

            private int id;
            private int status;
            private String status_name;
            private String order_sn;
            private int payment_type =0;

            public int getPayment_type() {
                return payment_type;
            }

            public void setPayment_type(int payment_type) {
                this.payment_type = payment_type;
            }

            private List<OrderGoodsBean> order_goods;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getStatus_name() {
                return status_name;
            }

            public void setStatus_name(String status_name) {
                this.status_name = status_name;
            }

            public String getOrder_sn() {
                return order_sn;
            }

            public void setOrder_sn(String order_sn) {
                this.order_sn = order_sn;
            }

            public List<OrderGoodsBean> getOrder_goods() {
                return order_goods;
            }

            public void setOrder_goods(List<OrderGoodsBean> order_goods) {
                this.order_goods = order_goods;
            }

            public static class OrderGoodsBean implements Serializable{
                /**
                 * order_goods_id : 86
                 * goods_id : 5
                 * quantity : 1
                 * price : 10.0
                 * goods_name : 店铺测试商品
                 * goods_pic : http://www.baidu.com
                 * total_money : 10.0
                 */

                private int order_goods_id;
                private int goods_id;
                private int quantity;
                private double price;
                private String goods_name;
                private String goods_pic;
                private double total_money;

                public int getOrder_goods_id() {
                    return order_goods_id;
                }

                public void setOrder_goods_id(int order_goods_id) {
                    this.order_goods_id = order_goods_id;
                }

                public int getGoods_id() {
                    return goods_id;
                }

                public void setGoods_id(int goods_id) {
                    this.goods_id = goods_id;
                }

                public int getQuantity() {
                    return quantity;
                }

                public void setQuantity(int quantity) {
                    this.quantity = quantity;
                }

                public double getPrice() {
                    return price;
                }

                public void setPrice(double price) {
                    this.price = price;
                }

                public String getGoods_name() {
                    return goods_name;
                }

                public void setGoods_name(String goods_name) {
                    this.goods_name = goods_name;
                }

                public String getGoods_pic() {
                    return goods_pic;
                }

                public void setGoods_pic(String goods_pic) {
                    this.goods_pic = goods_pic;
                }

                public double getTotal_money() {
                    return total_money;
                }

                public void setTotal_money(double total_money) {
                    this.total_money = total_money;
                }
            }
        }
    }
}
